<?php
namespace app\validate;

use think\Validate;

class CheckCity extends Validate
{
    protected $rule =   [
        'name'  => 'require|length:2,30',
        'e_name'  => 'require|length:2,30',
    ];

    protected $message  =   [
        'name.require' => '请输入城市名称！',
        'name.length' => '城市名称在2-30个字符！',
        'e_name.require' => '请输入城市名称(EN)！',
        'e_name.length' => '城市名称(EN)在2-30个字符！',
    ];

}